//
//  ProjectModel.m
//  EMMApp
//
//  Created by mac on 16/12/16.
//  Copyright © 2016年 YiXun. All rights reserved.
//

#import "ProjectModel.h"

@implementation ProjectModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.projectCode forKey:@"projectCode"];
    [aCoder encodeObject:self.projectName forKey:@"projectName"];
    [aCoder encodeObject:self.projectId forKey:@"projectId"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super init]) {
        self.projectCode = [aDecoder decodeObjectForKey:@"projectCode"];
        self.projectName = [aDecoder decodeObjectForKey:@"projectName"];
        self.projectId = [aDecoder decodeObjectForKey:@"projectId"];
    }
    return self;
}

@end
